import { get, post } from "./http";
//倒计时
export let reqCountDown =(params)=>get("/api/getcountdown")

//banner
export let reqBannerList=(params)=>get("/api/getnew")

//万人团
export let reqGrouponList=(params)=>get("/api/getgroupon")
// 首页商品
export let reqGoodsList=(params)=>get("/api/getindexgoods")
// 分类商品
export let reqCatesList=(params)=>get("/api/getcate")
// 分类商品信息
export let reqCateGoodsList=(params)=>get("/api/getgoods",params)
//购物车列表
export let reqShopList=(params)=>get("/api/cartlist",params)
//购物车添加
export let reqShopAdd=(params)=>post("/api/cartadd", params)
//购物车删除
export let reqShopDelete=(params)=>post("/api/cartdelete", params)
//购物车修改
export let reqcartedit=(params)=>post("/api/cartedit", params)
//登录
export let reqLogin=(params)=>post("/api/login", params)
//注册
export let reqRegister=(params)=>post("/api/register", params)
//详情
export let reqGoodsInfo=(params)=>get("/api/getgoodsinfo", params)



